var app = getApp();
var util = require('../../utils/util')
    //Page Object
Page({
    data: {
        systemInfo: app.systemInfo,
        workList: []
    },
    goto: function(e) {
        console.log(e.currentTarget.dataset.id)
        let id = e.currentTarget.dataset.id
        wx.navigateTo({
            url: '/packageA/pages/IntegralDetails/index?id=' + id
        });
    },
    getList() {
        let _self = this
        util.postRequest('FinanceManage/rest/exchangeList.do', { openId: app.openId }, function(res) {
            console.log(res)
            _self.setData({
                workList: res.exchangeList
            })
        })
    },
    //options(Object)
    onLoad: function(options) {
        this.getList()
    },
    onReady: function() {

    },
    onShow: function() {

    },
    onHide: function() {

    },
    onUnload: function() {

    },
    onPullDownRefresh: function() {

    },
    onReachBottom: function() {

    },
    onShareAppMessage: function() {

    },
    onPageScroll: function() {

    },
    //item(index,pagePath,text)
    onTabItemTap: function(item) {

    }
});